/*
 * SpaceBattleInterface.h
 *
 *  Created on: Oct 23, 2011
 *      Author: gonzalo
 */

#ifndef SpaceBattleINTERFACE_H_
#define SpaceBattleINTERFACE_H_

#include <string>
#include <list>
#include "../SDLtoolkit/Asteroide.h"
#include "../common/DTOCliente.h"
#include "ColaMensajes.h"
#include "../SDLtoolkit/widgets/ShipStatus.h"

class SpaceBattleInterface {
public:
	SpaceBattleInterface(std::string owner);
	SpaceBattleInterface(std::string scenarioName,bool);
	virtual ~SpaceBattleInterface();

	std::list<Asteroide*> getAsteroides();

	ShipStatus* getShip();

	void setScenearioElements(std::list<DTOAsteroide*> listElements);

	std::string getOwner();

private:

	void readXML();

	std::string owner;

	std::string scenarioName;

	//TODO se volvio feo esto, que reciba la conexion y opere a partir de ahi.
	bool esServer;

	std::list<DTOAsteroide*> asteroides;

	//XML data
	std::list<Asteroide*> asteroidesXML;
	ShipStatus* shipStatusXML;

};

#endif /* SpaceBattleINTERFACE_H_ */
